package im.oen.boot.api.annotation;

import im.oen.boot.api.annotation.handler.MethodAroundHandler;
import org.springframework.core.annotation.AliasFor;
import org.springframework.stereotype.Repository;

import java.lang.annotation.*;

/**
 * @author Kevin.Xu
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Repository
public @interface OenApiController {

    @AliasFor(annotation = Repository.class)
    String value() default "";

    String uri();

    Class<? extends MethodAroundHandler> around() default MethodAroundHandler.class;
}